In [2]:
from ipywidgets import interact, interactive, fixed
import ipywidgets as widgets
from IPython.display import clear_output
from IPython.display import display
from awid_classifier import AWIDClassifier
from tkinter import Tk, filedialog
root = Tk()
root.withdraw()
root.call('wm', 'attributes', '.', '-topmost', True)
clear_output()
In [3]:
isKeras = widgets.Dropdown(
options=[True, False],
description='keras model?:',
)
reducedFeatures = widgets.Dropdown(
options=[True, False],
description='reduced number of features?',
)
display(isKeras)
display(reducedFeatures)
Choose file for analysis here.
In [4]:
model = filedialog.askopenfilename()
print(model)
In [22]:
infile = filedialog.askopenfilename()
print(infile)
In [20]:
classifier = AWIDClassifier(model, isKeras.value, reducedFeatures.value)
In [ ]:
classifier.get_attacks_info_from_pcap(infile)
In [ ]:
classifier.get_attacks_info_from_csv(infile)